Skip to main content

Delete Tool

Used to delete a tool from your project. This permanently removes the tool and all its associated configuration, actions, and settings.

API Endpoint

PropertyValue
Request MethodDELETE
Request URLhttps://api.seliseblocks.com/tools/{tool_id}

Request

Request Example

curl -X DELETE 'https://api.seliseblocks.com/tools/{tool_id}?project_key=YOUR_PROJECT_KEY' \
-H 'accept: application/json'

Path Parameters

FieldTypeRequiredDescription
tool_idstringYesThe unique identifier of the tool to delete.

Query Parameters

FieldTypeRequiredDescription
project_keystringNoThe project key for your project.

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json
warning

Permanent Deletion Warning

  • This operation permanently deletes the tool and cannot be undone
  • All tool configuration, actions, and settings will be removed
  • Any AI agents using this tool will no longer be able to access it
  • Version history and usage statistics will be permanently lost
  • Active integrations using this tool may fail after deletion
tip

Before deleting a tool:

  • Export or backup tool configuration if you may need it later
  • Check which AI agents are using this tool
  • Review dependencies and integrations
  • Consider setting the tool status to "inactive" instead of deleting
  • Notify team members who may be using the tool
  • Update documentation to reflect the removal

After successful deletion:

  • Remove references to the tool from AI agent configurations
  • Update any external integrations
  • Document the deletion for audit purposes
  • Clear any cached tool data in your applications

Response

Success Response (204 No Content)

Returns an empty response with status code 204 indicating successful deletion.

Status Code: 204 No Content

Response Body: Empty (no content)

note

A 204 status code indicates the tool was successfully deleted. Unlike other endpoints, this response does not include a JSON body. The absence of an error response confirms the deletion was completed.

Error Response (422 Unprocessable Entity)

Returns validation error details when the request parameters are invalid.

{
"detail": [
{
"loc": [
"path",
"tool_id"
],
"msg": "tool not found or already deleted",
"type": "value_error.notfound"
}
]
}

Error Response Fields

FieldTypeDescription
detailarrayArray of validation error objects.
locarrayLocation of the error in the request (e.g., path, query).
msgstringHuman-readable error message.
typestringError type identifier.

Common Error Scenarios

Error TypeDescriptionResolution
Tool Not FoundTool ID doesn't exist or was already deletedVerify the tool_id is correct
Permission DeniedUser lacks permission to delete the toolCheck user permissions in project settings
Tool In UseTool is currently being used by active agentsStop agent executions or remove tool from agents first
Invalid Tool IDTool ID format is invalidEnsure tool_id matches the expected format

Error Codes

Status CodeDescriptionResponse Type
204No Content - Tool deleted successfullySuccess (Empty)
400Bad Request - Invalid requestBad Request
403Forbidden - Insufficient permissionsForbidden
404Not Found - Tool does not existNot Found
409Conflict - Tool is in use and cannot be deletedConflict
422Validation Error - Invalid request parametersUnprocessable Entity